import { handleActions } from 'redux-actions'
import { REGISTER_STATE, INFORMATION_PERFECTION } from '../types/register'
import api from '@/api/api'
export default handleActions({
  [REGISTER_STATE] (state) { 
    return { 
      ...state,
      registerData:state
    }
  },
  [INFORMATION_PERFECTION] (state) {
    return {
      ...state,
      informationPerfection: state
    }
  },
//   [ASYNC_INCREMENT] (state, action) {
//     return {
//       ...state,
//       asyncNum: state.asyncNum + action.payload
//     }
//   }
}, {
  registerData: null,
  informationPerfection:null
})